package com.android.wellcherish.workclock.bean.data;

import java.util.Objects;

/**
 * @author 张文琛
 * @date 2020/3/18 23:56
 */
public class RecordAdapterContentBean extends IBaseBean {
    /**
     * 内容布局显示的内容
     * */
    private String content;

    /**
     * 内容布局代表的时间描述
     * */
    private String time;

    public RecordAdapterContentBean(int id, String content, String time) {
        super(id);
        this.content = content;
        this.time = time;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getTime() {
        return time;
    }

    public void setTime(String time) {
        this.time = time;
    }

    @Override public String toString() {
        return "{\"RecordAdapterContentBean\":{"
            + "\"content\":\"" + content + "\""
            + ",\"time\":\"" + time + "\""
            + "}}";
    }

    @Override public boolean equals(Object o) {
        if (this == o) {
            return true;
        }
        if (!(o instanceof RecordAdapterContentBean)) {
            return false;
        }
        RecordAdapterContentBean that = (RecordAdapterContentBean) o;
        return Objects.equals(getContent(), that.getContent())
            && Objects.equals(getTime(), that.getTime());
    }

    @Override public int hashCode() {
        return Objects.hash(getContent(), getTime());
    }
}
